package com.soap.service;

import com.soap.entity.dto.UserDto;
import com.soap.entity.po.User;
import com.soap.entity.query.UserQuery;
import com.soap.entity.vo.UserLoginVo;

/**
 * @Description
 * @Author ZhangPY
 * @Date 2020/5/28
 */
public interface UserService {


    /**
     * 通过手机号添加user
     * @param userDto
     * @return
     */
    String addUserByPhone(UserDto userDto);

    /**
     * 登录
     * @param userLoginVo
     * @return
     */
    String accredit(UserLoginVo userLoginVo);

    /**
     * 校验token
     * @param token
     * @return
     */
    String checkToken(String token);

    /**
     * 分页查询User
     * @return
     */
    String getUserListByPage(UserQuery userQuery);

    /**
     *
     * @param userId
     * @param lockedState
     * @return
     */
    String lockOrUnLockUser(Long userId, Boolean lockedState);

    /**
     * 通过id查询用户
     * @param userId
     * @return
     */
    String getUserById(Long userId);

    /**
     * 更新用户
     * @param userDto
     * @return
     */
    String updateUser(User userDto);

    /**
     * 微信扫码登陆后微信回调
     * @param code
     * @return
     */
    String WxCallback(String code);
}
